package com.wisezone.demo0214;

public class Customer extends Thread{
    Account account;
    public Customer(Account account){
        this.account = account;
    }
    @Override
    public void run() {
        for (int i=0;i<5;i++){
            account.addMoney(1000);
        }

    }
}
